<!doctype html>
<html lang="en" data-color-mode="dark">
<head>
<meta charset="utf-8">
<title>MATLAB 备忘清单
 &#x26;  matlab cheatsheet &#x26;  Quick Reference</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta description="MATLAB 备忘清单
===

这个快速参考备忘单提供了使用 MATLAB 科学计算语言快速入门的示例介绍

入门，为开发人员分享快速参考备忘单。">
<meta keywords="matlab,reference,Quick,Reference,cheatsheet,cheat,sheet">
<link rel="icon" href="data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%221em%22%20width%3D%221em%22%3E%20%3Cpath%20d%3D%22m21.66%2010.44-.98%204.18c-.84%203.61-2.5%205.07-5.62%204.77-.5-.04-1.04-.13-1.62-.27l-1.68-.4c-4.17-.99-5.46-3.05-4.48-7.23l.98-4.19c.2-.85.44-1.59.74-2.2%201.17-2.42%203.16-3.07%206.5-2.28l1.67.39c4.19.98%205.47%203.05%204.49%207.23Z%22%20fill%3D%22%23c9d1d9%22%2F%3E%20%3Cpath%20d%3D%22M15.06%2019.39c-.62.42-1.4.77-2.35%201.08l-1.58.52c-3.97%201.28-6.06.21-7.35-3.76L2.5%2013.28c-1.28-3.97-.22-6.07%203.75-7.35l1.58-.52c.41-.13.8-.24%201.17-.31-.3.61-.54%201.35-.74%202.2l-.98%204.19c-.98%204.18.31%206.24%204.48%207.23l1.68.4c.58.14%201.12.23%201.62.27Zm2.43-8.88c-.06%200-.12-.01-.19-.02l-4.85-1.23a.75.75%200%200%201%20.37-1.45l4.85%201.23a.748.748%200%200%201-.18%201.47Z%22%20fill%3D%22%23228e6c%22%20%2F%3E%20%3Cpath%20d%3D%22M14.56%2013.89c-.06%200-.12-.01-.19-.02l-2.91-.74a.75.75%200%200%201%20.37-1.45l2.91.74c.4.1.64.51.54.91-.08.34-.38.56-.72.56Z%22%20fill%3D%22%23228e6c%22%20%2F%3E%20%3C%2Fsvg%3E" type="image/svg+xml">
<link rel="stylesheet" href="..\style\style.css">
<link rel="stylesheet" href="..\style\katex.css">
</head>
<body><nav class="header-nav"><div class="max-container"><a href="..\index.html" class="logo"><svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" height="1em" width="1em">
  <path d="m21.66 10.44-.98 4.18c-.84 3.61-2.5 5.07-5.62 4.77-.5-.04-1.04-.13-1.62-.27l-1.68-.4c-4.17-.99-5.46-3.05-4.48-7.23l.98-4.19c.2-.85.44-1.59.74-2.2 1.17-2.42 3.16-3.07 6.5-2.28l1.67.39c4.19.98 5.47 3.05 4.49 7.23Z" fill="#c9d1d9"></path>
  <path d="M15.06 19.39c-.62.42-1.4.77-2.35 1.08l-1.58.52c-3.97 1.28-6.06.21-7.35-3.76L2.5 13.28c-1.28-3.97-.22-6.07 3.75-7.35l1.58-.52c.41-.13.8-.24 1.17-.31-.3.61-.54 1.35-.74 2.2l-.98 4.19c-.98 4.18.31 6.24 4.48 7.23l1.68.4c.58.14 1.12.23 1.62.27Zm2.43-8.88c-.06 0-.12-.01-.19-.02l-4.85-1.23a.75.75 0 0 1 .37-1.45l4.85 1.23a.748.748 0 0 1-.18 1.47Z" fill="#228e6c"></path>
  <path d="M14.56 13.89c-.06 0-.12-.01-.19-.02l-2.91-.74a.75.75 0 0 1 .37-1.45l2.91.74c.4.1.64.51.54.91-.08.34-.38.56-.72.56Z" fill="#228e6c"></path>
</svg>
<span class="title">Quick Reference</span></a><div class="menu"><a href="javascript:void(0);" class="searchbtn" id="searchbtn"><svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 18 18">
  <path fill="currentColor" d="M17.71,16.29 L14.31,12.9 C15.4069846,11.5024547 16.0022094,9.77665502 16,8 C16,3.581722 12.418278,0 8,0 C3.581722,0 0,3.581722 0,8 C0,12.418278 3.581722,16 8,16 C9.77665502,16.0022094 11.5024547,15.4069846 12.9,14.31 L16.29,17.71 C16.4777666,17.8993127 16.7333625,18.0057983 17,18.0057983 C17.2666375,18.0057983 17.5222334,17.8993127 17.71,17.71 C17.8993127,17.5222334 18.0057983,17.2666375 18.0057983,17 C18.0057983,16.7333625 17.8993127,16.4777666 17.71,16.29 Z M2,8 C2,4.6862915 4.6862915,2 8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 Z"></path>
</svg><span>搜索</span><span>⌘K</span></a><a href="https://github.com/jaywcjlove/reference/blob/main/docs/matlab.md" class="" target="__blank"><svg viewBox="0 0 36 36" fill="currentColor" height="1em" width="1em"><path d="m33 6.4-3.7-3.7a1.71 1.71 0 0 0-2.36 0L23.65 6H6a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2V11.76l3-3a1.67 1.67 0 0 0 0-2.36ZM18.83 20.13l-4.19.93 1-4.15 9.55-9.57 3.23 3.23ZM29.5 9.43 26.27 6.2l1.85-1.85 3.23 3.23Z"></path><path fill="none" d="M0 0h36v36H0z"></path></svg><span>编辑</span></a><button id="darkMode" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="light" height="1em" width="1em">
  <path d="M6.995 12c0 2.761 2.246 5.007 5.007 5.007s5.007-2.246 5.007-5.007-2.246-5.007-5.007-5.007S6.995 9.239 6.995 12zM11 19h2v3h-2zm0-17h2v3h-2zm-9 9h3v2H2zm17 0h3v2h-3zM5.637 19.778l-1.414-1.414 2.121-2.121 1.414 1.414zM16.242 6.344l2.122-2.122 1.414 1.414-2.122 2.122zM6.344 7.759 4.223 5.637l1.415-1.414 2.12 2.122zm13.434 10.605-1.414 1.414-2.122-2.122 1.414-1.414z"></path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" class="dark" height="1em" width="1em">
  <path d="M12 11.807A9.002 9.002 0 0 1 10.049 2a9.942 9.942 0 0 0-5.12 2.735c-3.905 3.905-3.905 10.237 0 14.142 3.906 3.906 10.237 3.905 14.143 0a9.946 9.946 0 0 0 2.735-5.119A9.003 9.003 0 0 1 12 11.807z"></path>
</svg>
</button><script src="../js/dark.js?v=1.4.1"></script><a href="https://github.com/jaywcjlove/reference" class="" target="__blank"><svg viewBox="0 0 16 16" fill="currentColor" height="1em" width="1em"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg></a></div></div></nav><div class="wrap h1body-exist max-container"><header class="wrap-header h1wrap"><h1 id="matlab-备忘清单"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em" viewBox="0 0 170 155">
<path fill="currentColor" d="M114.011719,0 C114.031753,0 114.051781,9.66838127e-05 114.071803,0.00028991369 L113.950625,0 C114.100589,0 114.249952,0.00491257692 114.398738,0.0147015257 C114.496091,0.0180986001 114.59346,0.0264563127 114.690679,0.0370869506 C114.763187,0.0481571338 114.835494,0.0572318789 114.907669,0.067464417 C114.971991,0.0739091229 115.036007,0.0841522806 115.099959,0.0953775501 C115.24595,0.122450074 115.39156,0.152173631 115.536656,0.18662408 C115.540798,0.188498498 115.544794,0.189486731 115.54879,0.190478791 C119.122197,1.04453486 122.383831,4.76737051 125.66002,10.8263087 C134.504866,26.8199813 143.233527,58.3720491 155.079417,90.6337197 C159.654754,102.628081 164.55935,114.497108 169.788199,126.226944 L169.804687,126.261915 C169.561883,126.036533 169.320725,125.810778 169.080287,125.584766 C157.868517,115.075569 148.22195,104.663526 137.239023,104.2475 C132.658523,104.354002 127.856902,106.798464 122.838279,110.852094 C115.884496,116.808357 108.801576,125.883622 101.371385,134.204547 C98.5874924,137.56095 95.5963582,140.611013 92.6231575,143.258032 C88.7439115,146.854737 84.755953,149.885794 80.6318234,151.86198 C77.8565289,153.320564 75.5138817,154.09239 73.9252344,154.03711 C73.9252344,154.03711 73.6050703,153.13142 73.0221211,151.57669 C72.3047411,149.730047 71.5034539,147.651723 70.6255994,145.430214 C66.7152626,135.747112 59.8767348,120.415838 53.1632895,113.088875 C51.6852935,111.572994 50.1641478,110.359882 48.6081822,109.545946 C44.005418,107.866712 38.8723879,108.38614 34.6886719,110.979493 L0.055,86.396 L48.3332422,66.8904688 L48.6560848,66.4654629 C53.451559,60.1199079 58.8698811,54.2694715 64.8303516,49.0016797 L64.5185432,49.2785154 C64.6217228,49.1857698 64.7250601,49.0931917 64.8285547,49.0007813 C68.8310937,46.8777734 76.3510156,48.0304688 90.1177734,30.9287109 C90.3414762,30.6490748 90.5626216,30.370121 90.781262,30.0919051 C92.8016022,27.5154524 94.6118072,25.0027302 96.2508432,22.5981511 L96.5028669,22.2275882 C105.052639,9.58238289 108.828956,0 113.950625,0 L113.994,0.001 Z"></path>
</svg><a aria-hidden="true" tabindex="-1" href="#matlab-备忘清单"><span class="icon icon-link"></span></a>MATLAB 备忘清单</h1><div class="wrap-body">
<p>这个快速参考备忘单提供了使用 <a href="https://mathworks.cn/">MATLAB</a> 科学计算语言快速入门的示例介绍</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
  <path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#介绍">介绍</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#矩阵和数组运算">矩阵和数组运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#串联">串联</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#矩阵和数组">矩阵和数组</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#创建包含多行的矩阵">创建包含多行的矩阵</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#由零组成的-51-列向量">由零组成的 5×1 列向量</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#复数">复数</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#语言基础知识">语言基础知识</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#输入命令">输入命令</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#对象">对象</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#矩阵和数组-1">矩阵和数组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#数值类型">数值类型</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#循环及条件语句">循环及条件语句</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串数组">字符串数组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符数组">字符数组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符或字符串数组">字符或字符串数组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符或字符串---转换输入参数">字符或字符串 - 转换输入参数</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符或字符串---在数值和字符串之间转换">字符或字符串 - 在数值和字符串之间转换</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符或字符串---确定类型和属性">字符或字符串 - 确定类型和属性</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符或字符串---查找和替换">字符或字符串 - 查找和替换</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串匹配模式---构建模式">字符串匹配模式 - 构建模式</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串匹配模式---字符匹配模式">字符串匹配模式 - 字符匹配模式</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串匹配模式---模式搜索规则">字符串匹配模式 - 模式搜索规则</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串匹配模式---边界模式">字符串匹配模式 - 边界模式</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串匹配模式---自定义模式显示">字符串匹配模式 - 自定义模式显示</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串匹配模式---正则表达式">字符串匹配模式 - 正则表达式</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串匹配模式---联接和拆分">字符串匹配模式 - 联接和拆分</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串编辑">字符串编辑</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#字符串比较">字符串比较</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#基本算术">基本算术</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#模除法和舍入">模除法和舍入</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#自定义二元函数">自定义二元函数</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#关系运算">关系运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#逻辑布尔运算">逻辑（布尔）运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#集合运算">集合运算</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#按位运算">按位运算</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#数据导入和导出">数据导入和导出</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#文本文件---读取和写入表或时间表">文本文件 - 读取和写入表或时间表</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#基本导入和导出">基本导入和导出</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#定义导入规则">定义导入规则</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#文本文件---读取和写入矩阵和数组">文本文件 - 读取和写入矩阵和数组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#电子表格---读取和写入表或时间表">电子表格 - 读取和写入表或时间表</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#电子表格---读取和写入矩阵和数组">电子表格 - 读取和写入矩阵和数组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#图像">图像</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#读取或写入-netcdf-文件">读取或写入 NetCDF 文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---库函数">NetCDF 库程序包 - 库函数</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---文件操作">NetCDF 库程序包 - 文件操作</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---维度">NetCDF 库程序包 - 维度</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---组">NetCDF 库程序包 - 组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---变量">NetCDF 库程序包 - 变量</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---属性">NetCDF 库程序包 - 属性</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---用户定义的类型">NetCDF 库程序包 - 用户定义的类型</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#netcdf-库程序包---实用工具">NetCDF 库程序包 - 实用工具</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#读取或写入-hdf5-文件">读取或写入 HDF5 文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#hdf5-库程序包">HDF5 库程序包</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#hdf4-文件---高级函数">HDF4 文件 - 高级函数</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#低级函数---包">低级函数 - 包</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#低级函数---函数">低级函数 - 函数</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---函数">FITS 文件 - 函数</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---文件访问">FITS 文件 - 文件访问</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---图像处理">FITS 文件 - 图像处理</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---关键字">FITS 文件 - 关键字</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---标头数据单元-hdu-访问">FITS 文件 - 标头数据单元 (HDU) 访问</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---图像压缩">FITS 文件 - 图像压缩</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---ascii-表和二进制表">FITS 文件 - ASCII 表和二进制表</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#fits-文件---实用工具">FITS 文件 - 实用工具</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#条带交错文件">条带交错文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#常用数据格式-cdf">常用数据格式 (CDF)</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#包">包</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#读取视频数据">读取视频数据</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#写入视频数据">写入视频数据</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#读取或写入音频">读取或写入音频</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#播放音频">播放音频</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#录制音频">录制音频</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#播放声音">播放声音</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#xml-文档的读取和写入">XML 文档的读取和写入</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#w3c-dom">W3C DOM</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#xml-变换">XML 变换</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#xpath-查询">XPath 查询</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#json-格式">JSON 格式</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#工作区变量和-mat-文件">工作区变量和 MAT 文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#低级文件-io">低级文件 I/O</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#串行和-usb-通信---连接和配置">串行和 USB 通信 - 连接和配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#串行和-usb-通信---读取和写入">串行和 USB 通信 - 读取和写入</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#串行和-usb-通信---控制引脚和内存">串行和 USB 通信 - 控制引脚和内存</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#tcpip-通信---连接和配置">TCP/IP 通信 - 连接和配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#tcpip-通信---读取和写入">TCP/IP 通信 - 读取和写入</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#bluetooth-通信---连接和配置">Bluetooth 通信 - 连接和配置</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#bluetooth-通信---读取和写入">Bluetooth 通信 - 读取和写入</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#bluetooth-低功耗通信">Bluetooth 低功耗通信</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#web-服务">Web 服务</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#ftp-文件操作">FTP 文件操作</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#物联网-iot-数据">物联网 (IoT) 数据</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="介绍"><a aria-hidden="true" tabindex="-1" href="#介绍"><span class="icon icon-link"></span></a>介绍</h3><div class="wrap-body">
<p>MATLAB 是 <code>matrix laboratory</code> 的缩写形式</p>
<hr>
<ul>
<li><a href="https://www.mathworks.com">MATLAB 官网</a></li>
<li><a href="https://ww2.mathworks.cn/">MATLAB 官网(中文)</a></li>
</ul>
</div></div></div><div class="wrap h3body-not-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="矩阵和数组运算"><a aria-hidden="true" tabindex="-1" href="#矩阵和数组运算"><span class="icon icon-link"></span></a>矩阵和数组运算</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->
<p>MATLAB 允许您使用单一的算术运算符或函数来处理矩阵中的所有值</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">a <span class="token operator">+</span> <span class="token number">10</span>
</span></code></pre>
<p>MATLAB 将执行上述语句，并返回以下结果：</p>
<pre><code class="code-highlight"><span class="code-line">ans = 3×3
</span><span class="code-line">    11    13    15
</span><span class="code-line">    12    14    16
</span><span class="code-line">    17    18    20
</span></code></pre>
<hr>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line"><span class="token function">sin</span><span class="token punctuation">(</span>a<span class="token punctuation">)</span>
</span></code></pre>
<p>MATLAB 将执行上述语句，并返回以下结果：</p>
<pre><code class="code-highlight"><span class="code-line">ans = 3×3
</span><span class="code-line">    0.8415    0.1411   -0.9589
</span><span class="code-line">    0.9093   -0.7568   -0.2794
</span><span class="code-line">    0.6570    0.9894   -0.5440
</span></code></pre>
<p>要转置矩阵，请使用单引号 (<code>'</code>)</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">a<span class="token operator">'</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">ans = 3×3
</span><span class="code-line">     1     2     7
</span><span class="code-line">     3     4     8
</span><span class="code-line">     5     6    10
</span></code></pre>
<p>使用 <code>*</code> 运算符执行标准矩阵乘法，这将计算行与列之间的内积</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">p <span class="token operator">=</span> a<span class="token operator">*</span><span class="token function">inv</span><span class="token punctuation">(</span>a<span class="token punctuation">)</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">p = 3×3
</span><span class="code-line">    1.0000         0         0
</span><span class="code-line">         0    1.0000         0
</span><span class="code-line">         0         0    1.0000
</span></code></pre>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="串联"><a aria-hidden="true" tabindex="-1" href="#串联"><span class="icon icon-link"></span></a>串联</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<p>串联是连接数组以便形成更大数组的过程。实际上，第一个数组是通过将其各个元素串联起来而构成的。成对的方括号 <code>[]</code> 即为串联运算符。</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">A <span class="token operator">=</span> <span class="token punctuation">[</span>a<span class="token punctuation">,</span>a<span class="token punctuation">]</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">A = 3×6
</span><span class="code-line">
</span><span class="code-line">     1     3     5     1     3     5
</span><span class="code-line">     2     4     6     2     4     6
</span><span class="code-line">     7     8    10     7     8    10
</span></code></pre>
<p>使用逗号将彼此相邻的数组串联起来称为水平串联。每个数组必须具有相同的行数。同样，如果各数组具有相同的列数，则可以使用分号垂直串联。</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">A <span class="token operator">=</span> <span class="token punctuation">[</span>a<span class="token punctuation">;</span> a<span class="token punctuation">]</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">A = 6×3
</span><span class="code-line">
</span><span class="code-line">     1     3     5
</span><span class="code-line">     2     4     6
</span><span class="code-line">     7     8    10
</span><span class="code-line">     1     3     5
</span><span class="code-line">     2     4     6
</span><span class="code-line">     7     8    10
</span></code></pre>
</div></div></div><div class="wrap h3body-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="矩阵和数组"><a aria-hidden="true" tabindex="-1" href="#矩阵和数组"><span class="icon icon-link"></span></a>矩阵和数组</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->
<p>要创建每行包含四个元素的数组，请使用逗号 (<code>,</code>) 或空格分隔各元素</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">a <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span> <span class="token number">2</span> <span class="token number">3</span> <span class="token number">4</span><span class="token punctuation">]</span>
</span></code></pre>
<p>MATLAB 将执行上述语句，并返回以下结果：</p>
<pre><code class="code-highlight"><span class="code-line">a = 1×4
</span><span class="code-line">     1     2     3     4
</span></code></pre>
<h4 id="创建包含多行的矩阵"><a aria-hidden="true" tabindex="-1" href="#创建包含多行的矩阵"><span class="icon icon-link"></span></a>创建包含多行的矩阵</h4>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">a <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span> <span class="token number">3</span> <span class="token number">5</span><span class="token punctuation">;</span> <span class="token number">2</span> <span class="token number">4</span> <span class="token number">6</span><span class="token punctuation">;</span> <span class="token number">7</span> <span class="token number">8</span> <span class="token number">10</span><span class="token punctuation">]</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">a = 3×3
</span><span class="code-line">     1     3     5
</span><span class="code-line">     2     4     6
</span><span class="code-line">     7     8    10
</span></code></pre>
<h4 id="由零组成的-51-列向量"><a aria-hidden="true" tabindex="-1" href="#由零组成的-51-列向量"><span class="icon icon-link"></span></a>由零组成的 5×1 列向量</h4>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">z <span class="token operator">=</span> <span class="token function">zeros</span><span class="token punctuation">(</span><span class="token number">5</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">z = 5×1
</span><span class="code-line">     0
</span><span class="code-line">     0
</span><span class="code-line">     0
</span><span class="code-line">     0
</span><span class="code-line">     0
</span></code></pre>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="复数"><a aria-hidden="true" tabindex="-1" href="#复数"><span class="icon icon-link"></span></a>复数</h3><div class="wrap-body">
<p>复数包含实部和虚部，虚数单位是 -1 的平方根。</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line"><span class="token function">sqrt</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">ans = 0.0000 + 1.0000i
</span></code></pre>
<p>要表示复数的虚部，请使用 i 或 j。</p>
<pre class="language-matlab"><code class="language-matlab code-highlight"><span class="code-line">c <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">3</span><span class="token operator">+</span><span class="token number">4i</span><span class="token punctuation">,</span> <span class="token number">4</span><span class="token operator">+</span><span class="token number">3j</span><span class="token punctuation">;</span> <span class="token operator">-</span><span class="token number">i</span><span class="token punctuation">,</span> <span class="token number">10j</span><span class="token punctuation">]</span>
</span></code></pre>
<hr>
<pre><code class="code-highlight"><span class="code-line">c = 2×2 complex
</span><span class="code-line">
</span><span class="code-line">   3.0000 + 4.0000i   4.0000 + 3.0000i
</span><span class="code-line">   0.0000 - 1.0000i   0.0000 +10.0000i
</span></code></pre>
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="语言基础知识"><a aria-hidden="true" tabindex="-1" href="#语言基础知识"><span class="icon icon-link"></span></a>语言基础知识</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap h3body-exist"><div class="wrap-header h3wrap"><h3 id="输入命令"><a aria-hidden="true" tabindex="-1" href="#输入命令"><span class="icon icon-link"></span></a>输入命令</h3><div class="wrap-body">























































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ans.html">ans</a></td><td align="left">最近计算的答案</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/clc.html">clc</a></td><td align="left">清空命令行窗口</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/diary.html">diary</a></td><td align="left">将命令行窗口文本记录到日志文件中</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/format.html">format</a></td><td align="left">设置输出显示格式</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/home.html">home</a></td><td align="left">发送光标复位</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/iskeyword.html">iskeyword</a></td><td align="left">确定输入是否为 <span class="trademark">MATLAB</span> 关键字</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/more.html">more</a></td><td align="left">控制命令行窗口中的分页输出</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/commandwindow.html">commandwindow</a></td><td align="left">选择命令行窗口</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/commandhistory.html">commandhistory</a></td><td align="left">打开命令历史记录窗口</td><td align="left"></td></tr></tbody></table>
<h4 id="对象"><a aria-hidden="true" tabindex="-1" href="#对象"><span class="icon icon-link"></span></a>对象</h4>













<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ans.html">DisplayFormatOptions</a></td><td align="left">命令行窗口中的输出显示格式</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-5"><div class="wrap-header h3wrap"><h3 id="矩阵和数组-1"><a aria-hidden="true" tabindex="-1" href="#矩阵和数组-1"><span class="icon icon-link"></span></a>矩阵和数组</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-5-->
<p>创建和合并数组</p>











































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/zeros.html">zeros</a></td><td align="left">创建全零数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ones.html">ones</a></td><td align="left">创建全部为 1 的数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/rand.html">rand</a></td><td align="left">均匀分布的随机数</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/true.html">true</a></td><td align="left">逻辑值 1（真）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/false.html">false</a></td><td align="left">逻辑 0（假）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/eye.html">eye</a></td><td align="left">单位矩阵</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/diag.html">diag</a></td><td align="left">创建对角矩阵或获取矩阵的对角元素</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/blkdiag.html">blkdiag</a></td><td align="left">分块对角矩阵</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.cat.html">cat</a></td><td align="left">串联数组。</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/horzcat.html">horzcat</a></td><td align="left">水平串联数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/vertcat.html">vertcat</a></td><td align="left">垂直串联数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/repelem.html">repelem</a></td><td align="left">重复数组元素副本</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/repmat.html">repmat</a></td><td align="left">重复数组副本</td><td align="left"></td></tr></tbody></table>
<p>创建网格</p>



































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/linspace.html">linspace</a></td><td align="left">生成线性间距向量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/logspace.html">logspace</a></td><td align="left">生成对数间距向量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/freqspace.html">freqspace</a></td><td align="left">频率响应的频率间距</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/meshgrid.html">meshgrid</a></td><td align="left">二维和三维网格</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ndgrid.html">ndgrid</a></td><td align="left">N 维空间中的矩形网格</td><td align="left"></td></tr></tbody></table>
<p>确定大小、形状和排序</p>






































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/length.html">length</a></td><td align="left">最大数组维度的长度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/size.html">size</a></td><td align="left">数组大小</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.ndims.html">ndims</a></td><td align="left">数组维度数目</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.numel.html">numel</a></td><td align="left">数组元素的数目</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isscalar.html">isscalar</a></td><td align="left">确定输入是否为标量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/issorted.html">issorted</a></td><td align="left">确定数组是否已排序</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/issortedrows.html">issortedrows</a></td><td align="left">确定矩阵或表的行是否已排序</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isvector.html">isvector</a></td><td align="left">确定输入是否为向量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ismatrix.html">ismatrix</a></td><td align="left">确定输入是否为矩阵</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isrow.html">isrow</a></td><td align="left">确定输入是否为行向量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/iscolumn.html">iscolumn</a></td><td align="left">确定输入是否为列向量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isempty.html">isempty</a></td><td align="left">确定数组是否为空</td><td align="left"></td></tr></tbody></table>
<p>重构和重新排列</p>
















































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sort.html">sort</a></td><td align="left">对数组元素排序</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.sortrows.html">sortrows</a></td><td align="left">对矩阵行或表行进行排序</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/flip.html">flip</a></td><td align="left">翻转元素顺序</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fliplr.html">fliplr</a></td><td align="left">将数组从左向右翻转</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/flipud.html">flipud</a></td><td align="left">将数组从上向下翻转</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/rot90.html">rot90</a></td><td align="left">将数组旋转 90 度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/transpose.html">transpose</a></td><td align="left">转置向量或矩阵</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ctranspose.html">ctranspose</a></td><td align="left">复共轭转置</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/permute.html">permute</a></td><td align="left">置换数组维度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ipermute.html">ipermute</a></td><td align="left">逆置换数组维度。</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/circshift.html">circshift</a></td><td align="left">循环平移数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/shiftdim.html">shiftdim</a></td><td align="left">移动数组维度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/reshape.html">reshape</a></td><td align="left">重构数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/squeeze.html">squeeze</a></td><td align="left">删除长度为 1 的维度</td><td align="left"></td></tr></tbody></table>
<p>索引</p>






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/colon.html">colon</a></td><td align="left">向量创建、数组下标和 <code class="literal">for</code> 循环迭代</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/end.html">end</a></td><td align="left">终止代码块或指示最大数组索引</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ind2sub.html">ind2sub</a></td><td align="left">将线性索引转换为下标</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sub2ind.html">sub2ind</a></td><td align="left">将下标转换为线性索引</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="数值类型"><a aria-hidden="true" tabindex="-1" href="#数值类型"><span class="icon icon-link"></span></a>数值类型</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<p>创建数值变量</p>




























































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.html">double</a></td><td align="left">双精度数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/single.html">single</a></td><td align="left">单精度数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/int8.html">int8</a></td><td align="left">8 位有符号整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/int16.html">int16</a></td><td align="left">16 位有符号整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/int32.html">int32</a></td><td align="left">32 位有符号整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/int64.html">int64</a></td><td align="left">64 位有符号整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/uint8.html">uint8</a></td><td align="left">8 位无符号整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/uint16.html">uint16</a></td><td align="left">16 位无符号整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/uint32.html">uint32</a></td><td align="left">32 位无符号整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/uint64.html">uint64</a></td><td align="left">64 位无符号整数数组</td><td align="left"></td></tr></tbody></table>
<p>在数值类型之间转换</p>




















<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/cast.html">cast</a></td><td align="left">将变量转换为不同的数据类型</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/typecast.html">typecast</a></td><td align="left">在不更改基础数据的情况下转换数据类型</td><td align="left"></td></tr></tbody></table>
<p>查询类型和值</p>























































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/allfinite.html%22">allfinite</a></td><td align="left">Determine if all array elements are finite</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/anynan.html%22">anynan</a></td><td align="left">Determine if any array element is NaN</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isinteger.html">isinteger</a></td><td align="left">确定输入是否为整数数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isfloat.html">isfloat</a></td><td align="left">确定输入是否为浮点数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isnumeric.html">isnumeric</a></td><td align="left">确定输入是否为数值数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isreal.html">isreal</a></td><td align="left">确定数组是否使用复数存储</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isfinite.html">isfinite</a></td><td align="left">确定哪些数组元素为有限</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isinf.html">isinf</a></td><td align="left">确定哪些数组元素为无限值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isnan.html">isnan</a></td><td align="left">确定哪些数组元素为 NaN</td><td align="left"></td></tr></tbody></table>
<p>数值范围</p>


















































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/eps.html">eps</a></td><td align="left">浮点相对精度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/flintmax.html">flintmax</a></td><td align="left">浮点格式的最大连续整数</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/inf.html">Inf</a></td><td align="left">创建所有值均为 <code>Inf</code> 的数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/intmax.html">intmax</a></td><td align="left">特定整数类型的最大值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/intmin.html">intmin</a></td><td align="left">特定整数类型的最小值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/nan.html">NaN</a></td><td align="left">创建所有值均为 <code class="literal">NaN</code> 的数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/realmax.html">realmax</a></td><td align="left">最大的正浮点数</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/realmin.html">realmin</a></td><td align="left">最小标准浮点数</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="循环及条件语句"><a aria-hidden="true" tabindex="-1" href="#循环及条件语句"><span class="icon icon-link"></span></a>循环及条件语句</h3><div class="wrap-body">





















































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/if.html">if, elseif, else</a></td><td align="left">条件为 true 时执行语句</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/switch.html">switch, case, otherwise</a></td><td align="left">执行多组语句中的一组</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/for.html">for</a></td><td align="left">用来重复指定次数的 <code>for</code> 循环</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/while.html">while</a></td><td align="left">条件为 true 时重复执行的 <code>while</code> 循环</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/try.html">try, catch</a></td><td align="left">执行语句并捕获产生的错误</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/break.html">break</a></td><td align="left">终止执行 for 或 while 循环</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/return.html">return</a></td><td align="left">将控制权交还给调用脚本或函数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/continue.html">continue</a></td><td align="left">将控制传递给 <code>for</code> 或 <code>while</code> 循环的下一迭代</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/pause.html">pause</a></td><td align="left">暂时停止执行 <code>MATLAB</code></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/parfor.html">parfor</a></td><td align="left">并行 for 循环</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/end.html">end</a></td><td align="left">终止代码块或指示最大数组索引</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串数组"><a aria-hidden="true" tabindex="-1" href="#字符串数组"><span class="icon icon-link"></span></a>字符串数组</h3><div class="wrap-body">






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/string.html">string</a></td><td align="left">字符串数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strings.html">strings</a></td><td align="left">创建不包含字符的字符串数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/join.html">join</a></td><td align="left">合并字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/plus.html">plus</a></td><td align="left">添加数字，追加字符串</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符数组"><a aria-hidden="true" tabindex="-1" href="#字符数组"><span class="icon icon-link"></span></a>字符数组</h3><div class="wrap-body">






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/char.html">char</a></td><td align="left">字符数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/cellstr.html">cellstr</a></td><td align="left">转换为字符向量元胞数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/blanks.html">blanks</a></td><td align="left">创建空白字符数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/newline.html">newline</a></td><td align="left">创建换行符</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符或字符串数组"><a aria-hidden="true" tabindex="-1" href="#字符或字符串数组"><span class="icon icon-link"></span></a>字符或字符串数组</h3><div class="wrap-body">






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/compose.html">compose</a></td><td align="left">将数据格式化为多个字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sprintf.html">sprintf</a></td><td align="left">将数据格式化为字符串或字符向量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strcat.html">strcat</a></td><td align="left">水平串联字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/append.html">append</a></td><td align="left">合并字符串</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符或字符串---转换输入参数"><a aria-hidden="true" tabindex="-1" href="#字符或字符串---转换输入参数"><span class="icon icon-link"></span></a>字符或字符串 - 转换输入参数</h3><div class="wrap-body">





















<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/convertcharstostrings.html">convertCharsToStrings</a></td><td align="left">将字符数组转换为字符串数组，其他数组不变</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/convertstringstochars.html">convertStringsToChars</a></td><td align="left">将字符串数组转换为字符数组，其他数组不变</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/convertcontainedstringstochars.html">convertContainedStringsToChars</a></td><td align="left">在元胞数组或结构体的任何级别转换字符串数组</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符或字符串---在数值和字符串之间转换"><a aria-hidden="true" tabindex="-1" href="#字符或字符串---在数值和字符串之间转换"><span class="icon icon-link"></span></a>字符或字符串 - 在数值和字符串之间转换</h3><div class="wrap-body">






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.html">double</a></td><td align="left">双精度数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/string.html">string</a></td><td align="left">字符串数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/str2double.html">str2double</a></td><td align="left">将字符串转换为双精度值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/num2str.html">num2str</a></td><td align="left">将数字转换为字符数组</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="字符或字符串---确定类型和属性"><a aria-hidden="true" tabindex="-1" href="#字符或字符串---确定类型和属性"><span class="icon icon-link"></span></a>字符或字符串 - 确定类型和属性</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<p>数据类型</p>






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ischar.html">ischar</a></td><td align="left">确定输入是否为字符数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/iscellstr.html">iscellstr</a></td><td align="left">确定输入是否为字符向量元胞数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isstring.html">isstring</a></td><td align="left">确定输入是否为字符串数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isstringscalar.html">isStringScalar</a></td><td align="left">确定输入是否为包含一个元素的字符串数组</td><td align="left"></td></tr></tbody></table>
<p>文本属性</p>






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strlength.html">strlength</a></td><td align="left">字符串长度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isstrprop.html">isstrprop</a></td><td align="left">确定输入字符串中的哪些字符属于指定类别</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isletter.html">isletter</a></td><td align="left">确定哪些字符为字母</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isspace.html">isspace</a></td><td align="left">确定哪些字符是空白字符</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="字符或字符串---查找和替换"><a aria-hidden="true" tabindex="-1" href="#字符或字符串---查找和替换"><span class="icon icon-link"></span></a>字符或字符串 - 查找和替换</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<p>查找</p>













































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/contains.html">contains</a></td><td align="left">确定字符串中是否有模式</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matches.html">matches</a></td><td align="left">确定模式是否与字符串匹配</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/count.html">count</a></td><td align="left">计算字符串中模式的出现次数</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/endswith.html">endsWith</a></td><td align="left">确定字符串是否以模式结尾</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/startswith.html">startsWith</a></td><td align="left">确定字符串是否以模式开头</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strfind.html">strfind</a></td><td align="left">在其他字符串中查找字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sscanf.html">sscanf</a></td><td align="left">从字符串读取格式化数据</td><td align="left"></td></tr></tbody></table>
<p>替换</p>

























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/replace.html">replace</a></td><td align="left">查找并替换一个或多个子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/replacebetween.html">replaceBetween</a></td><td align="left">替换起点和终点之间的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strrep.html">strrep</a></td><td align="left">查找并替换子字符串</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串匹配模式---构建模式"><a aria-hidden="true" tabindex="-1" href="#字符串匹配模式---构建模式"><span class="icon icon-link"></span></a>字符串匹配模式 - 构建模式</h3><div class="wrap-body">















<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/pattern.html">pattern</a></td><td align="left">用于搜索和匹配文本的模式</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串匹配模式---字符匹配模式"><a aria-hidden="true" tabindex="-1" href="#字符串匹配模式---字符匹配模式"><span class="icon icon-link"></span></a>字符串匹配模式 - 字符匹配模式</h3><div class="wrap-body">








































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/alphanumericspattern.html">alphanumericsPattern</a></td><td align="left">匹配字母和数字字符</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/characterlistpattern.html">characterListPattern</a></td><td align="left">匹配列表中的字符</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/digitspattern.html">digitsPattern</a></td><td align="left">匹配数字字符</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/letterspattern.html">lettersPattern</a></td><td align="left">匹配字母字符</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/whitespacepattern.html">whitespacePattern</a></td><td align="left">匹配空白字符</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/wildcardpattern.html">wildcardPattern</a></td><td align="left">匹配尽可能少的任意类型的字符</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串匹配模式---模式搜索规则"><a aria-hidden="true" tabindex="-1" href="#字符串匹配模式---模式搜索规则"><span class="icon icon-link"></span></a>字符串匹配模式 - 模式搜索规则</h3><div class="wrap-body">








































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/optionalpattern.html">optionalPattern</a></td><td align="left">使模式匹配可选</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/possessivepattern.html">possessivePattern</a></td><td align="left">匹配模式而不回溯</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/casesensitivepattern.html">caseSensitivePattern</a></td><td align="left">以区分大小写的方式匹配模式</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/caseinsensitivepattern.html">caseInsensitivePattern</a></td><td align="left">以不区分大小写的方式匹配模式</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/asfewofpattern.html">asFewOfPattern</a></td><td align="left">模式匹配次数尽可能少</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/asmanyofpattern.html">asManyOfPattern</a></td><td align="left">模式匹配次数尽可能多</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="字符串匹配模式---边界模式"><a aria-hidden="true" tabindex="-1" href="#字符串匹配模式---边界模式"><span class="icon icon-link"></span></a>字符串匹配模式 - 边界模式</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->









































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/alphanumericboundary.html">alphanumericBoundary</a></td><td align="left">匹配字母数字字符与非字母数字字符之间的边界</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/digitboundary.html">digitBoundary</a></td><td align="left">匹配数字字符和非数字字符之间的边界</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/letterboundary.html">letterBoundary</a></td><td align="left">匹配字母字符和非字母字符之间的边界</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/whitespaceboundary.html">whitespaceBoundary</a></td><td align="left">匹配空白字符和非空白字符之间的边界</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/lineboundary.html">lineBoundary</a></td><td align="left">匹配行首或行尾</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/textboundary.html">textBoundary</a></td><td align="left">匹配文本的开头或结尾</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/lookaheadboundary.html">lookAheadBoundary</a></td><td align="left">匹配指定模式之前的边界</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/lookbehindboundary.html">lookBehindBoundary</a></td><td align="left">匹配指定模式之后的边界</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串匹配模式---自定义模式显示"><a aria-hidden="true" tabindex="-1" href="#字符串匹配模式---自定义模式显示"><span class="icon icon-link"></span></a>字符串匹配模式 - 自定义模式显示</h3><div class="wrap-body">




















<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/maskedpattern.html">maskedPattern</a></td><td align="left">具有指定显示名称的模式</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/namedpattern.html">namedPattern</a></td><td align="left">指定命名模式</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串匹配模式---正则表达式"><a aria-hidden="true" tabindex="-1" href="#字符串匹配模式---正则表达式"><span class="icon icon-link"></span></a>字符串匹配模式 - 正则表达式</h3><div class="wrap-body">



































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/regexp.html">regexp</a></td><td align="left">匹配正则表达式（区分大小写）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/regexpi.html">regexpi</a></td><td align="left">匹配正则表达式（不区分大小写）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/regexprep.html">regexprep</a></td><td align="left">使用正则表达式替换文本</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/regexptranslate.html">regexptranslate</a></td><td align="left">将文本转换为正则表达式</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/regexppattern.html">regexpPattern</a></td><td align="left">匹配指定正则表达式的模式</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串匹配模式---联接和拆分"><a aria-hidden="true" tabindex="-1" href="#字符串匹配模式---联接和拆分"><span class="icon icon-link"></span></a>字符串匹配模式 - 联接和拆分</h3><div class="wrap-body">

































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/join.html">join</a></td><td align="left">合并字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/plus.html">plus</a></td><td align="left">添加数字，追加字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/split.html">split</a></td><td align="left">在分隔符处拆分字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/splitlines.html">splitlines</a></td><td align="left">在换行符处拆分字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strjoin.html">strjoin</a></td><td align="left">联接数组中的字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strsplit.html">strsplit</a></td><td align="left">在指定分隔符处拆分字符串或字符向量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strtok.html">strtok</a></td><td align="left">所选的字符串部分</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extract.html">extract</a></td><td align="left">从字符串中提取子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extractafter.html">extractAfter</a></td><td align="left">提取指定位置后的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extractbefore.html">extractBefore</a></td><td align="left">提取指定位置前的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extractbetween.html">extractBetween</a></td><td align="left">提取起点和终点之间的子字符串</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="字符串编辑"><a aria-hidden="true" tabindex="-1" href="#字符串编辑"><span class="icon icon-link"></span></a>字符串编辑</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->


























































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/erase.html">erase</a></td><td align="left">删除字符串内的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/erasebetween.html">eraseBetween</a></td><td align="left">删除起点和终点之间的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extract.html">extract</a></td><td align="left">从字符串中提取子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extractafter.html">extractAfter</a></td><td align="left">提取指定位置后的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extractbefore.html">extractBefore</a></td><td align="left">提取指定位置前的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/extractbetween.html">extractBetween</a></td><td align="left">提取起点和终点之间的子字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/insertafter.html">insertAfter</a></td><td align="left">在指定的子字符串后插入字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/insertbefore.html">insertBefore</a></td><td align="left">在指定的子字符串前插入字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/pad.html">pad</a></td><td align="left">为字符串添加前导或尾随字符</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strip.html">strip</a></td><td align="left">删除字符串中的前导和尾部字符</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/lower.html">lower</a></td><td align="left">将字符串转换为小写</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/upper.html">upper</a></td><td align="left">将字符串转换为大写</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/reverse.html">reverse</a></td><td align="left">反转字符串中的字符顺序</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/deblank.html">deblank</a></td><td align="left">删除字符串末尾的尾随空白</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strtrim.html">strtrim</a></td><td align="left">从字符串中删除前导和尾随空白</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strjust.html">strjust</a></td><td align="left">对齐字符串</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串比较"><a aria-hidden="true" tabindex="-1" href="#字符串比较"><span class="icon icon-link"></span></a>字符串比较</h3><div class="wrap-body">



































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matches.html">matches</a></td><td align="left">确定模式是否与字符串匹配</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strcmp.html">strcmp</a></td><td align="left">比较字符串</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strcmpi.html">strcmpi</a></td><td align="left">比较字符串（不区分大小写）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strncmp.html">strncmp</a></td><td align="left">比较字符串的前 <code class="literal">n</code> 个字符（区分大小写）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/strncmpi.html">strncmpi</a></td><td align="left">比较字符串的前 <code class="literal">n</code> 个字符（不区分大小写）</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="基本算术"><a aria-hidden="true" tabindex="-1" href="#基本算术"><span class="icon icon-link"></span></a>基本算术</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->
<p>加法</p>
<ul class="cols-2 style-none">
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/plus.html">+</a> 添加数字，追加字符串</li>
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/sum.html">sum</a> 数组元素总和</li>
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/cumsum.html">cumsum</a> 累积和</li>
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/movsum.html">movsum</a> 移动总和</li>
</ul>
<!--rehype:className=cols-2 style-none-->
<p>减法</p>
<ul class="cols-2 style-none">
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/minus.html">-</a> 减法</li>
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/diff.html">diff</a> 差分和近似导数</li>
</ul>
<!--rehype:className=cols-2 style-none-->
<p>乘法</p>








































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/times.html">.*</a></td><td align="left">乘法</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/mtimes.html">*</a></td><td align="left">矩阵乘法</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/prod.html">prod</a></td><td align="left">数组元素的乘积</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/cumprod.html">cumprod</a></td><td align="left">累积乘积</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/pagemtimes.html">pagemtimes</a></td><td align="left">按页矩阵乘法</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tensorprod.html">tensorprod</a></td><td align="left">Tensor products between two tensors</td><td align="left"></td></tr></tbody></table>
<p>除法</p>






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/rdivide.html">./</a></td><td align="left">数组右除</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ldivide.html">.\</a></td><td align="left">数组左除</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/mrdivide.html">/</a></td><td align="left">求解关于 x 的线性方程组 xA = B</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/mldivide.html">\</a></td><td align="left">求解关于 x 的线性方程组 Ax = B</td><td align="left"></td></tr></tbody></table>
<p>幂</p>
<ul class="cols-2">
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/power.html">.^</a> 按元素求幂</li>
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/mpower.html">^</a> 矩阵幂</li>
</ul>
<!--rehype:className=cols-2-->
<p>转置</p>






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/transpose.html">.'</a></td><td align="left">转置向量或矩阵</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ctranspose.html">'</a></td><td align="left">复共轭转置</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/pagetranspose.html">pagetranspose</a></td><td align="left">按页转置</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/pagectranspose.html">pagectranspose</a></td><td align="left">按页复共轭转置</td><td align="left"></td></tr></tbody></table>
<p>数组符号</p>
<ul class="cols-2">
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/uminus.html">uminus</a> 一元减法</li>
<li><a href="https://ww2.mathworks.cn/help/matlab/ref/uplus.html">uplus</a> 一元加法</li>
</ul>
<!--rehype:className=cols-2-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="模除法和舍入"><a aria-hidden="true" tabindex="-1" href="#模除法和舍入"><span class="icon icon-link"></span></a>模除法和舍入</h3><div class="wrap-body">













































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/mod.html">mod</a></td><td align="left">除后的余数（取模运算）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/rem.html">rem</a></td><td align="left">除后的余数</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/idivide.html">idivide</a></td><td align="left">带有舍入选项的整除</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ceil.html">ceil</a></td><td align="left">向正无穷舍入</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fix.html">fix</a></td><td align="left">向零舍入</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/floor.html">floor</a></td><td align="left">向负无穷舍入</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/round.html">round</a></td><td align="left">四舍五入为最近的小数或整数</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="自定义二元函数"><a aria-hidden="true" tabindex="-1" href="#自定义二元函数"><span class="icon icon-link"></span></a>自定义二元函数</h3><div class="wrap-body">















<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bsxfun.html">bsxfun</a></td><td align="left">对两个数组应用按元素运算（启用隐式扩展）</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="关系运算"><a aria-hidden="true" tabindex="-1" href="#关系运算"><span class="icon icon-link"></span></a>关系运算</h3><div class="wrap-body">
<p>值的比较</p>


















































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/eq.html">==</a></td><td align="left">确定相等性</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ge.html">>=</a></td><td align="left">决定大于或等于</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/gt.html">></a></td><td align="left">确定大于</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/le.html">&#x3C;=</a></td><td align="left">确定小于等于</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/lt.html">&#x3C;</a></td><td align="left">确定小于</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ne.html">~=</a></td><td align="left">确定不相等性</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isequal.html">isequal</a></td><td align="left">确定数组相等性</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/isequaln.html">isequaln</a></td><td align="left">测试数组相等性，将 <code>NaN</code> 值视为相等</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="逻辑布尔运算"><a aria-hidden="true" tabindex="-1" href="#逻辑布尔运算"><span class="icon icon-link"></span></a>逻辑（布尔）运算</h3><div class="wrap-body">
<p>true 或 false 条件</p>






































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/logicaloperatorsshortcircuit.html">Short-circuit &#x26;&#x26;, ||</a></td><td align="left">具有短路功能的逻辑运算</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/and.html">&#x26;</a></td><td align="left">计算逻辑 <code>AND</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/not.html">~</a></td><td align="left">计算逻辑 <code>NOT</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/or.html">|</a></td><td align="left">计算逻辑 <code>OR</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/xor.html">xor</a></td><td align="left">计算逻辑异 <code>OR</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/all.html">all</a></td><td align="left">确定所有的数组元素是为非零还是 <code>true</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/any.html">any</a></td><td align="left">确定是否有任何数组元素非零</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/false.html">false</a></td><td align="left">逻辑 <code>0</code>（假）</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/find.html">find</a></td><td align="left">查找非零元素的索引和值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/islogical.html">islogical</a></td><td align="left">确定输入是否为逻辑数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/logical.html">logical</a></td><td align="left">将数值转换为逻辑值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/true.html">true</a></td><td align="left">逻辑值 <code>1</code>（真）</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="集合运算"><a aria-hidden="true" tabindex="-1" href="#集合运算"><span class="icon icon-link"></span></a>集合运算</h3><div class="wrap-body">
<p>并集、交集、集合关系</p>

































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.intersect.html">intersect</a></td><td align="left">设置两个数组的交集</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.ismember.html">ismember</a></td><td align="left">判断数组元素是否为集数组成员</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.setdiff.html">setdiff</a></td><td align="left">设置两个数组的差集</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.setxor.html">setxor</a></td><td align="left">设置两个数组的异或</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.union.html">union</a></td><td align="left">设置两个数组的并集</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/double.unique.html">unique</a></td><td align="left">数组中的唯一值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ismembertol.html">ismembertol</a></td><td align="left">容差范围内的集合成员</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/uniquetol.html">uniquetol</a></td><td align="left">容差内的唯一值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/table.join.html">join</a></td><td align="left">使用键变量按行合并两个表或时间表</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/innerjoin.html">innerjoin</a></td><td align="left">两个表或时间表之间的内联</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/outerjoin.html">outerjoin</a></td><td align="left">两个表或时间表之间的外联</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="按位运算"><a aria-hidden="true" tabindex="-1" href="#按位运算"><span class="icon icon-link"></span></a>按位运算</h3><div class="wrap-body">
<p>设置、偏移或比较特定位域</p>


















































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bitand.html">bitand</a></td><td align="left">按位 <code>AND</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bitor.html">bitor</a></td><td align="left">按位 <code>OR</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bitxor.html">bitxor</a></td><td align="left">按位 <code>XOR</code></td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bitcmp.html">bitcmp</a></td><td align="left">按位补码</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bitget.html">bitget</a></td><td align="left">获取指定位置的位</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bitset.html">bitset</a></td><td align="left">设置指定位置的位</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bitshift.html">bitshift</a></td><td align="left">将位移动指定位数</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/swapbytes.html">swapbytes</a></td><td align="left">交换字节顺序</td><td align="left"></td></tr></tbody></table>
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="数据导入和导出"><a aria-hidden="true" tabindex="-1" href="#数据导入和导出"><span class="icon icon-link"></span></a>数据导入和导出</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap h3body-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="文本文件---读取和写入表或时间表"><a aria-hidden="true" tabindex="-1" href="#文本文件---读取和写入表或时间表"><span class="icon icon-link"></span></a>文本文件 - 读取和写入表或时间表</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<h4 id="基本导入和导出"><a aria-hidden="true" tabindex="-1" href="#基本导入和导出"><span class="icon icon-link"></span></a>基本导入和导出</h4>






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readtable.html">readtable</a></td><td align="left">基于文件创建表</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writetable.html">writetable</a></td><td align="left">将表写入文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readtimetable.html">readtimetable</a></td><td align="left">基于文件创建时间表</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writetimetable.html">writetimetable</a></td><td align="left">将时间表写入文件</td><td align="left"></td></tr></tbody></table>
<h4 id="定义导入规则"><a aria-hidden="true" tabindex="-1" href="#定义导入规则"><span class="icon icon-link"></span></a>定义导入规则</h4>

















































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/detectimportoptions.html">detectImportOptions</a></td><td align="left">基于文件内容生成导入选项</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.html">delimitedTextImportOptions</a></td><td align="left">为带分隔符的文本导入选项对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.fixedwidthimportoptions.html">fixedWidthImportOptions</a></td><td align="left">等宽文本文件的导入选项对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.xmlimportoptions.html">xmlImportOptions</a></td><td align="left">为 XML 文件导入选项对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.html.htmlimportoptions.html">htmlImportOptions</a></td><td align="left">Import options object for HTML files</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.word.worddocumentimportoptions.html">wordDocumentImportOptions</a></td><td align="left"><code>Microsoft Word</code> 文档文件的导入选项对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.getvaropts.html">getvaropts</a></td><td align="left">获取变量导入选项</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.setvaropts.html">setvaropts</a></td><td align="left">设置变量导入选项</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.setvartype.html">setvartype</a></td><td align="left">设置变量数据类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.preview.html">preview</a></td><td align="left">使用导入选项预览文件中的八行数据</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="文本文件---读取和写入矩阵和数组"><a aria-hidden="true" tabindex="-1" href="#文本文件---读取和写入矩阵和数组"><span class="icon icon-link"></span></a>文本文件 - 读取和写入矩阵和数组</h3><div class="wrap-body">




























































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readmatrix.html">readmatrix</a></td><td align="left">从文件中读取矩阵</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writematrix.html">writematrix</a></td><td align="left">将矩阵写入文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readcell.html">readcell</a></td><td align="left">从文件中读取元胞数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writecell.html">writecell</a></td><td align="left">将元胞数组写入文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readvars.html">readvars</a></td><td align="left">从文件中读取变量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/textscan.html">textscan</a></td><td align="left">从文本文件或字符串读取格式化数据</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/type.html">type</a></td><td align="left">显示文件内容</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fileread.html">fileread</a></td><td align="left">以文本格式读取文件内容</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readlines.html">readlines</a></td><td align="left">以字符串数组形式读取文件行</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writelines.html">writelines</a></td><td align="left">Write text to file</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="电子表格---读取和写入表或时间表"><a aria-hidden="true" tabindex="-1" href="#电子表格---读取和写入表或时间表"><span class="icon icon-link"></span></a>电子表格 - 读取和写入表或时间表</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<p>基本导入和导出</p>



































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readtable.html">readtable</a></td><td align="left">基于文件创建表</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writetable.html">writetable</a></td><td align="left">将表写入文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readtimetable.html">readtimetable</a></td><td align="left">基于文件创建时间表</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writetimetable.html">writetimetable</a></td><td align="left">将时间表写入文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sheetnames.html">sheetnames</a></td><td align="left">从电子表格文件中获取工作表名称</td><td align="left"></td></tr></tbody></table>
<p>定义导入规则</p>

































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/detectimportoptions.html">detectImportOptions</a></td><td align="left">基于文件内容生成导入选项</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.spreadsheet.spreadsheetimportoptions.html">spreadsheetImportOptions</a></td><td align="left">电子表格的导入选项对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.getvaropts.html">getvaropts</a></td><td align="left">获取变量导入选项</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.setvaropts.html">setvaropts</a></td><td align="left">设置变量导入选项</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.setvartype.html">setvartype</a></td><td align="left">设置变量数据类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.text.delimitedtextimportoptions.preview.html">preview</a></td><td align="left">使用导入选项预览文件中的八行数据</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="电子表格---读取和写入矩阵和数组"><a aria-hidden="true" tabindex="-1" href="#电子表格---读取和写入矩阵和数组"><span class="icon icon-link"></span></a>电子表格 - 读取和写入矩阵和数组</h3><div class="wrap-body">








































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readmatrix.html">readmatrix</a></td><td align="left">从文件中读取矩阵</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writematrix.html">writematrix</a></td><td align="left">将矩阵写入文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readcell.html">readcell</a></td><td align="left">从文件中读取元胞数组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/writecell.html">writecell</a></td><td align="left">将元胞数组写入文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/readvars.html">readvars</a></td><td align="left">从文件中读取变量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/importdata.html">importdata</a></td><td align="left">从文件加载数据</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="图像"><a aria-hidden="true" tabindex="-1" href="#图像"><span class="icon icon-link"></span></a>图像</h3><div class="wrap-body">






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/imfinfo.html">imfinfo</a></td><td align="left">有关图形文件的信息</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/imread.html">imread</a></td><td align="left">从图形文件读取图像</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/imwrite.html">imwrite</a></td><td align="left">将图像写入图形文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tiff.html">Tiff</a></td><td align="left">LibTIFF 库例程的 MATLAB 入口</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="读取或写入-netcdf-文件"><a aria-hidden="true" tabindex="-1" href="#读取或写入-netcdf-文件"><span class="icon icon-link"></span></a>读取或写入 NetCDF 文件</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->


















































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/nccreate.html">nccreate</a></td><td align="left">在 NetCDF 文件中创建变量</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ncdisp.html">ncdisp</a></td><td align="left">在命令行窗口中显示 NetCDF 数据源内容</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ncinfo.html">ncinfo</a></td><td align="left">返回有关 NetCDF 数据源的信息</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ncread.html">ncread</a></td><td align="left">读取 NetCDF 数据源中的变量数据</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ncreadatt.html">ncreadatt</a></td><td align="left">读取 NetCDF 数据源中的属性值</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ncwrite.html">ncwrite</a></td><td align="left">将数据写入 NetCDF 文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ncwriteatt.html">ncwriteatt</a></td><td align="left">将属性写入 NetCDF 文件</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ncwriteschema.html">ncwriteschema</a></td><td align="left">将 NetCDF 架构定义添加到 NetCDF 文件中</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---库函数"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---库函数"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 库函数</h3><div class="wrap-body">

























<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.getchunkcache.html">netcdf.getChunkCache</a></td><td align="left">检索 NetCDF 库的区块缓存设置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqlibvers.html">netcdf.inqLibVers</a></td><td align="left">返回 NetCDF 库版本信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.setchunkcache.html">netcdf.setChunkCache</a></td><td align="left">设置 NetCDF 库的默认分块缓存设置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.setdefaultformat.html">netcdf.setDefaultFormat</a></td><td align="left">更改默认 netCDF 文件的格式</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---文件操作"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---文件操作"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 文件操作</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->

























































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.abort.html">netcdf.abort</a></td><td align="left">还原最近的 netCDF 文件定义</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.close.html">netcdf.close</a></td><td align="left">关闭 netCDF 文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.create.html">netcdf.create</a></td><td align="left">创建新的 NetCDF 数据集</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.enddef.html">netcdf.endDef</a></td><td align="left">结束 netCDF 文件定义模式</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inq.html">netcdf.inq</a></td><td align="left">返回有关 netCDF 文件的信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqformat.html">netcdf.inqFormat</a></td><td align="left">确定 NetCDF 文件的格式</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqgrps.html">netcdf.inqGrps</a></td><td align="left">检索子组 ID 数组</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqunlimdims.html">netcdf.inqUnlimDims</a></td><td align="left">检索组中无限维度列表</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.open.html">netcdf.open</a></td><td align="left">打开 NetCDF 数据源</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.redef.html">netcdf.reDef</a></td><td align="left">让打开的 netCDF 文件进入定义模式</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.setfill.html">netcdf.setFill</a></td><td align="left">设置 netCDF 填充模式</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.sync.html">netcdf.sync</a></td><td align="left">将 netCDF 文件同步到磁盘</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---维度"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---维度"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 维度</h3><div class="wrap-body">






























<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defdim.html">netcdf.defDim</a></td><td align="left">创建 netCDF 维度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqdim.html">netcdf.inqDim</a></td><td align="left">返回 netCDF 维度名称和长度</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqdimid.html">netcdf.inqDimID</a></td><td align="left">返回维度 ID</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.renamedim.html">netcdf.renameDim</a></td><td align="left">更改 netCDF 维度名</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---组"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---组"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 组</h3><div class="wrap-body">













































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defgrp.html">netcdf.defGrp</a></td><td align="left">在 NetCDF 文件中创建组</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqdimids.html">netcdf.inqDimIDs</a></td><td align="left">检索组中维度标识符列表</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqgrpname.html">netcdf.inqGrpName</a></td><td align="left">检索组名</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqgrpnamefull.html">netcdf.inqGrpNameFull</a></td><td align="left">组的完整路径名</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqgrpparent.html">netcdf.inqGrpParent</a></td><td align="left">检索父组的 ID。</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqncid.html">netcdf.inqNcid</a></td><td align="left">返回已命名组的 ID</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvarids.html">netcdf.inqVarIDs</a></td><td align="left">组中所有变量的 ID</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---变量"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---变量"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 变量</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->

































































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defvarfill.html">netcdf.defVarFill</a></td><td align="left">定义 NetCDF 变量的填充参数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defvar.html">netcdf.defVar</a></td><td align="left">创建 NetCDF 变量</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defvarchunking.html">netcdf.defVarChunking</a></td><td align="left">定义 NetCDF 变量的分块行为</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defvardeflate.html">netcdf.defVarDeflate</a></td><td align="left">定义 NetCDF 变量的压缩参数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defvarfletcher32.html">netcdf.defVarFletcher32</a></td><td align="left">定义 NetCDF 变量的校验参数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.getvar.html">netcdf.getVar</a></td><td align="left">读取 NetCDF 变量中的数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvar.html">netcdf.inqVar</a></td><td align="left">有关变量的信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvarchunking.html">netcdf.inqVarChunking</a></td><td align="left">确定 NetCDF 变量的分块设置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvardeflate.html">netcdf.inqVarDeflate</a></td><td align="left">确定 NetCDF 变量的压缩设置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvarfill.html">netcdf.inqVarFill</a></td><td align="left">确定 NetCDF 变量的填充参数值</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvarfletcher32.html">netcdf.inqVarFletcher32</a></td><td align="left">关于 NetCDF 变量的 Fletcher32 校验和设置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvarid.html">netcdf.inqVarID</a></td><td align="left">返回与变量名相关联的 ID</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.putvar.html">netcdf.putVar</a></td><td align="left">将数据写入 netCDF 变量</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.renamevar.html">netcdf.renameVar</a></td><td align="left">更改 netCDF 变量名</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---属性"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---属性"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 属性</h3><div class="wrap-body">


















































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.copyatt.html">netcdf.copyAtt</a></td><td align="left">将属性复制到新位置</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.delatt.html">netcdf.delAtt</a></td><td align="left">删除 netCDF 属性</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.getatt.html">netcdf.getAtt</a></td><td align="left">返回 NetCDF 属性</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqatt.html">netcdf.inqAtt</a></td><td align="left">返回有关 netCDF 属性的信息</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqattid.html">netcdf.inqAttID</a></td><td align="left">返回 netCDF 属性的 ID</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqattname.html">netcdf.inqAttName</a></td><td align="left">返回 netCDF 属性名称</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.putatt.html">netcdf.putAtt</a></td><td align="left">写入 netCDF 属性</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.renameatt.html">netcdf.renameAtt</a></td><td align="left">更改属性名称</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---用户定义的类型"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---用户定义的类型"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 用户定义的类型</h3><div class="wrap-body">





















<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.defvlen.html">netcdf.defVlen</a></td><td align="left">Define user-defined variable length array type (NC_VLEN)</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqusertype.html">netcdf.inqUserType</a></td><td align="left">Return information about user-defined type</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.inqvlen.html">netcdf.inqVlen</a></td><td align="left">Return information about user-defined <code>NC_VLEN</code> type</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="netcdf-库程序包---实用工具"><a aria-hidden="true" tabindex="-1" href="#netcdf-库程序包---实用工具"><span class="icon icon-link"></span></a>NetCDF 库程序包 - 实用工具</h3><div class="wrap-body">

















<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.getconstant.html">netcdf.getConstant</a></td><td align="left">返回命名常量的数值</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/netcdf.getconstantnames.html">netcdf.getConstantNames</a></td><td align="left">返回 netCDF 库已知的常量列表</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="读取或写入-hdf5-文件"><a aria-hidden="true" tabindex="-1" href="#读取或写入-hdf5-文件"><span class="icon icon-link"></span></a>读取或写入 HDF5 文件</h3><div class="wrap-body">













































<table><thead><tr><th align="left">:-</th><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/h5create.html">h5create</a></td><td align="left">创建 HDF5 数据集</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/h5disp.html">h5disp</a></td><td align="left">显示 HDF5 文件的内容</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/h5info.html">h5info</a></td><td align="left">有关 HDF5 文件的信息</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/h5read.html">h5read</a></td><td align="left">从 HDF5 数据集读取数据</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/h5readatt.html">h5readatt</a></td><td align="left">从 HDF5 文件中读取属性</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/h5write.html">h5write</a></td><td align="left">写入 HDF5 数据集</td><td align="left"></td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/h5writeatt.html">h5writeatt</a></td><td align="left">写入 HDF5 属性</td><td align="left"></td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-4"><div class="wrap-header h3wrap"><h3 id="hdf5-库程序包"><a aria-hidden="true" tabindex="-1" href="#hdf5-库程序包"><span class="icon icon-link"></span></a>HDF5 库程序包</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-4-->





































































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/libraryh5.html">Library (H5)</a></td><td align="left">General-purpose functions for use with entire HDF5 library</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/attributeh5a.html">Attribute (H5A)</a></td><td align="left">Metadata associated with datasets or groups</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/dataseth5d.html">Dataset (H5D)</a></td><td align="left">Multidimensional arrays of data elements and supporting metadata</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/dimensionscaleh5ds.html">Dimension Scale (H5DS)</a></td><td align="left">Dimension scale associated with dataset dimensions</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/errorh5e.html">Error (H5E)</a></td><td align="left">Error handling</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fileh5f.html">File (H5F)</a></td><td align="left">HDF5 file access</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/grouph5g.html">Group (H5G)</a></td><td align="left">Organization of objects in file</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/identifierh5i.html">Identifier (H5I)</a></td><td align="left">HDF5 object identifiers</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/linkh5l.html">Link (H5L)</a></td><td align="left">Links in HDF5 file</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlabh5ml.html">MATLAB (H5ML)</a></td><td align="left">不属于 HDF5 C 库的 <code>MATLAB</code> 工具函数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/objecth5o.html">Object (H5O)</a></td><td align="left">Objects in file</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/propertyh5p.html">Property (H5P)</a></td><td align="left">Object property lists</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/referenceh5r.html">Reference (H5R)</a></td><td align="left">HDF5 references</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/dataspaceh5s.html">Dataspace (H5S)</a></td><td align="left">Dimensionality of dataset</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/datatypeh5t.html">Datatype (H5T)</a></td><td align="left">Datatype of elements in a dataset</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="hdf4-文件---高级函数"><a aria-hidden="true" tabindex="-1" href="#hdf4-文件---高级函数"><span class="icon icon-link"></span></a>HDF4 文件 - 高级函数</h3><div class="wrap-body">

























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfinfo.html">hdfinfo</a></td><td align="left">有关 HDF4 或 HDF-EOS 文件的信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfread.html">hdfread</a></td><td align="left">从 HDF4 或 HDF-EOS 文件读取数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/imread.html">imread</a></td><td align="left">从图形文件读取图像</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/imwrite.html">imwrite</a></td><td align="left">将图像写入图形文件</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="低级函数---包"><a aria-hidden="true" tabindex="-1" href="#低级函数---包"><span class="icon icon-link"></span></a>低级函数 - 包</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->





















<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.hdf4.sd.html">matlab.io.hdf4.sd</a></td><td align="left">直接与 HDF4 多文件科学数据集 (SD) 接口交互</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.hdfeos.gd.html">matlab.io.hdfeos.gd</a></td><td align="left">低级别访问 HDF-EOS 网格数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.hdfeos.sw.html">matlab.io.hdfeos.sw</a></td><td align="left">对 HDF-EOS 分段文件的低级别访问</td></tr></tbody></table>
<h4 id="低级函数---函数"><a aria-hidden="true" tabindex="-1" href="#低级函数---函数"><span class="icon icon-link"></span></a>低级函数 - 函数</h4>





























































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfan.html">hdfan</a></td><td align="left">HDF 多文件注释 (AN) 接口的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfhx.html">hdfhx</a></td><td align="left">HDF 外部数据 (HX) 接口的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfh.html">hdfh</a></td><td align="left">HDF H 接口的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfhd.html">hdfhd</a></td><td align="left">HDF HD 接口的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfhe.html">hdfhe</a></td><td align="left">HDF HE 接口的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfml.html">hdfml</a></td><td align="left">与 <code>MATLAB</code> HDF 入口函数配合使用的实用工具</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfpt.html">hdfpt</a></td><td align="left">HDF-EOS 点对象的接口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfv.html">hdfv</a></td><td align="left">HDF Vgroup (V) 接口的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfvf.html">hdfvf</a></td><td align="left">HDF Vdata 接口中 VF 函数的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfvh.html">hdfvh</a></td><td align="left">HDF Vdata 接口中 VH 函数的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfvs.html">hdfvs</a></td><td align="left">HDF Vdata 接口中 VS 函数的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfdf24.html">hdfdf24</a></td><td align="left">HDF 24 位光栅图像 (DF24) 接口的入口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/hdfdfr8.html">hdfdfr8</a></td><td align="left">HDF 8 位光栅图像 (DFR8) 接口的入口</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="fits-文件---函数"><a aria-hidden="true" tabindex="-1" href="#fits-文件---函数"><span class="icon icon-link"></span></a>FITS 文件 - 函数</h3><div class="wrap-body">

























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fitsdisp.html">fitsdisp</a></td><td align="left">显示 FITS 元数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fitsinfo.html">fitsinfo</a></td><td align="left">有关 FITS 文件的信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fitsread.html">fitsread</a></td><td align="left">读取 FITS 文件中的数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fitswrite.html">fitswrite</a></td><td align="left">将图像写入 FITS 文件</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="fits-文件---文件访问"><a aria-hidden="true" tabindex="-1" href="#fits-文件---文件访问"><span class="icon icon-link"></span></a>FITS 文件 - 文件访问</h3><div class="wrap-body">





































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.createfile.html">createFile</a></td><td align="left">创建 FITS 文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.openfile.html">openFile</a></td><td align="left">打开 FITS 文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.opendiskfile.html">openDiskFile</a></td><td align="left">打开 FITS 文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.closefile.html">closeFile</a></td><td align="left">关闭 FITS 文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.deletefile.html">deleteFile</a></td><td align="left">删除 FITS 文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.filename.html">fileName</a></td><td align="left">FITS 文件的名称</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.filemode.html">fileMode</a></td><td align="left">FITS 文件的 I/O 模式</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="fits-文件---图像处理"><a aria-hidden="true" tabindex="-1" href="#fits-文件---图像处理"><span class="icon icon-link"></span></a>FITS 文件 - 图像处理</h3><div class="wrap-body">





































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.createimg.html">createImg</a></td><td align="left">创建 FITS 图像</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getimgsize.html">getImgSize</a></td><td align="left">图像大小</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getimgtype.html">getImgType</a></td><td align="left">图像的数据类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.insertimg.html">insertImg</a></td><td align="left">在当前图像后面插入 FITS 图像</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readimg.html">readImg</a></td><td align="left">读取图像数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.setbscale.html">setBscale</a></td><td align="left">重置图像缩放</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writeimg.html">writeImg</a></td><td align="left">写入 FITS 图像</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="fits-文件---关键字"><a aria-hidden="true" tabindex="-1" href="#fits-文件---关键字"><span class="icon icon-link"></span></a>FITS 文件 - 关键字</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->









































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readcard.html">readCard</a></td><td align="left">关键字的标头记录</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readkey.html">readKey</a></td><td align="left">关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readkeycmplx.html">readKeyCmplx</a></td><td align="left">复数标量值形式的关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readkeydbl.html">readKeyDbl</a></td><td align="left">双精度值形式的关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readkeylonglong.html">readKeyLongLong</a></td><td align="left"><code>int64</code> 形式的关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readkeylongstr.html">readKeyLongStr</a></td><td align="left">长字符串值</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readkeyunit.html">readKeyUnit</a></td><td align="left">关键字中的物理单位字符串</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readrecord.html">readRecord</a></td><td align="left">编号指定的标头记录</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writecomment.html">writeComment</a></td><td align="left">向 CHU 写入或追加 COMMENT 关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writedate.html">writeDate</a></td><td align="left">向 CHU 写入 DATE 关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writekey.html">writeKey</a></td><td align="left">将新关键字更新或添加到当前 HDU 中</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writekeyunit.html">writeKeyUnit</a></td><td align="left">写入物理单位字符串</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writehistory.html">writeHistory</a></td><td align="left">向 CHU 写入或追加 HISTORY 关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.deletekey.html">deleteKey</a></td><td align="left">按名称删除关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.deleterecord.html">deleteRecord</a></td><td align="left">按记录号删除关键字</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.gethdrspace.html">getHdrSpace</a></td><td align="left">标头中的关键字数量</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="fits-文件---标头数据单元-hdu-访问"><a aria-hidden="true" tabindex="-1" href="#fits-文件---标头数据单元-hdu-访问"><span class="icon icon-link"></span></a>FITS 文件 - 标头数据单元 (HDU) 访问</h3><div class="wrap-body">













































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.copyhdu.html">copyHDU</a></td><td align="left">将当前 HDU 从一个文件复制到另一个文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.gethdunum.html">getHDUnum</a></td><td align="left">FITS 文件中当前 HDU 的编号</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.gethdutype.html">getHDUtype</a></td><td align="left">当前 HDU 的类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getnumhdus.html">getNumHDUs</a></td><td align="left">FITS 文件中的 HDU 总数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.movabshdu.html">movAbsHDU</a></td><td align="left">移至绝对 HDU 编号</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.movnamhdu.html">movNamHDU</a></td><td align="left">移至第一个包含特定类型和关键字值的 HDU</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.movrelhdu.html">movRelHDU</a></td><td align="left">从当前 HDU 移动相对数量的 HDU</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writechecksum.html">writeChecksum</a></td><td align="left">计算并写入当前 HDU 的校验和</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.deletehdu.html">deleteHDU</a></td><td align="left">删除 FITS 文件中当前的 HDU</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="fits-文件---图像压缩"><a aria-hidden="true" tabindex="-1" href="#fits-文件---图像压缩"><span class="icon icon-link"></span></a>FITS 文件 - 图像压缩</h3><div class="wrap-body">

































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.imgcompress.html">imgCompress</a></td><td align="left">将 HDU 从一个文件压缩到另一个文件中</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.iscompressedimg.html">isCompressedImg</a></td><td align="left">确定当前图像是否已压缩</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.setcompressiontype.html">setCompressionType</a></td><td align="left">设置图像压缩类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.sethcompscale.html">setHCompScale</a></td><td align="left">设置 HCOMPRESS 算法的缩放参数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.sethcompsmooth.html">setHCompSmooth</a></td><td align="left">为使用 HCOMPRESS 压缩的图像设置平滑化</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.settiledim.html">setTileDim</a></td><td align="left">设置图块维度</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="fits-文件---ascii-表和二进制表"><a aria-hidden="true" tabindex="-1" href="#fits-文件---ascii-表和二进制表"><span class="icon icon-link"></span></a>FITS 文件 - ASCII 表和二进制表</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->





















































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.createtbl.html">createTbl</a></td><td align="left">创建新的 ASCII 或二进制表扩展</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.insertcol.html">insertCol</a></td><td align="left">向表插入列</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.insertrows.html">insertRows</a></td><td align="left">向表插入行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.insertatbl.html">insertATbl</a></td><td align="left">在当前 HDU 后面插入 ASCII 表</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.insertbtbl.html">insertBTbl</a></td><td align="left">在当前 HDU 后面插入二进制表</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.deletecol.html">deleteCol</a></td><td align="left">从表中删除列</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.deleterows.html">deleteRows</a></td><td align="left">从表中删除行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getacolparms.html">getAColParms</a></td><td align="left">ASCII 表信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getbcolparms.html">getBColParms</a></td><td align="left">二进制表信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getcolname.html">getColName</a></td><td align="left">表列名称</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getcoltype.html">getColType</a></td><td align="left">经缩放的列的数据类型、重复值、宽度</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.geteqcoltype.html">getEqColType</a></td><td align="left">列的数据类型、重复值、宽度</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getnumcols.html">getNumCols</a></td><td align="left">表中的列数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getnumrows.html">getNumRows</a></td><td align="left">表中的行数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readatblhdr.html">readATblHdr</a></td><td align="left">从当前 ASCII 表中读取标头信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readbtblhdr.html">readBTblHdr</a></td><td align="left">从当前二进制表中读取标头信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.readcol.html">readCol</a></td><td align="left">读取 ASCII 或二进制表列的行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.settscale.html">setTscale</a></td><td align="left">重置图像缩放</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.writecol.html">writeCol</a></td><td align="left">向 ASCII 或二进制表列写入元素</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="fits-文件---实用工具"><a aria-hidden="true" tabindex="-1" href="#fits-文件---实用工具"><span class="icon icon-link"></span></a>FITS 文件 - 实用工具</h3><div class="wrap-body">





















<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getconstantvalue.html">getConstantValue</a></td><td align="left">指定常量的数值</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getversion.html">getVersion</a></td><td align="left">CFITSIO 库的修订号</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.fits.getopenfiles.html">getOpenFiles</a></td><td align="left">已打开的 FITS 文件列表</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="条带交错文件"><a aria-hidden="true" tabindex="-1" href="#条带交错文件"><span class="icon icon-link"></span></a>条带交错文件</h3><div class="wrap-body">

















<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/multibandread.html">multibandread</a></td><td align="left">从二进制文件读取条带交错文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/multibandwrite.html">multibandwrite</a></td><td align="left">将条带交错数据写入文件</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-exist"><div class="wrap-header h3wrap"><h3 id="常用数据格式-cdf"><a aria-hidden="true" tabindex="-1" href="#常用数据格式-cdf"><span class="icon icon-link"></span></a>常用数据格式 (CDF)</h3><div class="wrap-body">

























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/cdfinfo.html">cdfinfo</a></td><td align="left">有关常用数据格式 (CDF) 文件的信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/cdfread.html">cdfread</a></td><td align="left">读取常用数据格式 (CDF) 文件中的数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/cdfepoch.html">cdfepoch</a></td><td align="left">将日期文本或日期序列值转换为 CDF 格式的日期</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/todatenum.html">todatenum</a></td><td align="left">将 CDF 历元对象转换为 <code>MATLAB</code> 日期序列值</td></tr></tbody></table>
<h4 id="包"><a aria-hidden="true" tabindex="-1" href="#包"><span class="icon icon-link"></span></a>包</h4>













<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/cdflib.html">cdflib</a></td><td align="left">与 CDF 库直接交互</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="读取视频数据"><a aria-hidden="true" tabindex="-1" href="#读取视频数据"><span class="icon icon-link"></span></a>读取视频数据</h3><div class="wrap-body">

































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videoreader.html">VideoReader</a></td><td align="left">创建对象以读取视频文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videoreader.read.html">read</a></td><td align="left">读取一个或多个视频帧</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videoreader.readframe.html">readFrame</a></td><td align="left">读取下一个视频帧</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videoreader.hasframe.html">hasFrame</a></td><td align="left">确定是否有视频帧可供读取</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videoreader.getfileformats.html">getFileFormats</a></td><td align="left"><code>VideoReader</code> 支持的文件格式</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/mmfileinfo.html">mmfileinfo</a></td><td align="left">有关多媒体文件的信息</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="写入视频数据"><a aria-hidden="true" tabindex="-1" href="#写入视频数据"><span class="icon icon-link"></span></a>写入视频数据</h3><div class="wrap-body">





























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videowriter.html">VideoWriter</a></td><td align="left">创建对象以写入视频文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videowriter.open.html">open</a></td><td align="left">打开文件以写入视频数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videowriter.writevideo.html">writeVideo</a></td><td align="left">将视频数据写入到文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videowriter.close.html">close</a></td><td align="left">写入视频数据之后关闭文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/videowriter.getprofiles.html">getProfiles</a></td><td align="left"><code>VideoWriter</code> 支持的描述文件和文件格式</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="读取或写入音频"><a aria-hidden="true" tabindex="-1" href="#读取或写入音频"><span class="icon icon-link"></span></a>读取或写入音频</h3><div class="wrap-body">





























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioread.html">audioread</a></td><td align="left">读取音频文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiowrite.html">audiowrite</a></td><td align="left">写音频文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/lin2mu.html">lin2mu</a></td><td align="left">将线性音频信号转换为 mu-law</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/mu2lin.html">mu2lin</a></td><td align="left">将 mu-law 音频信号转换为线性格式</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioinfo.html">audioinfo</a></td><td align="left">有关音频文件的信息</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="播放音频"><a aria-hidden="true" tabindex="-1" href="#播放音频"><span class="icon icon-link"></span></a>播放音频</h3><div class="wrap-body">





































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioplayer.html">audioplayer</a></td><td align="left">用于播放音频的对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioplayer.isplaying.html">isplaying</a></td><td align="left">确定播放是否正在进行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioplayer.pause.html">pause</a></td><td align="left">暂停播放或录制</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioplayer.play.html">play</a></td><td align="left">从 <code>audioplayer</code> 对象播放音频</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioplayer.playblocking.html">playblocking</a></td><td align="left">播放 <code>audioplayer</code> 对象中的音频，保持控制权直到播放完成</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioplayer.resume.html">resume</a></td><td align="left">从暂停状态继续播放或录制</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audioplayer.stop.html">stop</a></td><td align="left">停止播放或录制</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="录制音频"><a aria-hidden="true" tabindex="-1" href="#录制音频"><span class="icon icon-link"></span></a>录制音频</h3><div class="wrap-body">

































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiorecorder.html">audiorecorder</a></td><td align="left">用于录制音频的对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiorecorder.getaudiodata.html">getaudiodata</a></td><td align="left">将录制的音频信号存储在数值数组中</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiorecorder.getplayer.html">getplayer</a></td><td align="left">创建关联的 <code>audioplayer</code> 对象</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiorecorder.isrecording.html">isrecording</a></td><td align="left">确定录制是否正在进行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiorecorder.record.html">record</a></td><td align="left">将音频录制到 <code>audiorecorder</code> 对象中</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiorecorder.recordblocking.html">recordblocking</a></td><td align="left">将音频录制到 <code>audiorecorder</code> 对象中，在录制完成前保持控制权</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="播放声音"><a aria-hidden="true" tabindex="-1" href="#播放声音"><span class="icon icon-link"></span></a>播放声音</h3><div class="wrap-body">





























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiodevinfo.html">audiodevinfo</a></td><td align="left">有关音频设备的信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/audiodevreset.html">audiodevreset</a></td><td align="left">刷新可用音频设备列表</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sound.html">sound</a></td><td align="left">将信号数据矩阵转换为声音</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/soundsc.html">soundsc</a></td><td align="left">缩放数据和作为声音播放</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/beep.html">beep</a></td><td align="left">产生操作系统蜂鸣声</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="xml-文档的读取和写入"><a aria-hidden="true" tabindex="-1" href="#xml-文档的读取和写入"><span class="icon icon-link"></span></a>XML 文档的读取和写入</h3><div class="wrap-body">





























































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.domwriter-class.html">matlab.io.xml.dom.DOMWriter</a></td><td align="left">串行化 XML 文档的写入器</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.entityresolver-class.html">matlab.io.xml.dom.EntityResolver</a></td><td align="left">实体解析器的抽象基类</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.filewriter-class.html">matlab.io.xml.dom.FileWriter</a></td><td align="left">创建文本文件的写入器</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.locator-class.html">matlab.io.xml.dom.Locator</a></td><td align="left">元素在 XML 文件中的位置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.parser-class.html">matlab.io.xml.dom.Parser</a></td><td align="left">XML 标记解析器</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.parserconfiguration-class.html">matlab.io.xml.dom.ParserConfiguration</a></td><td align="left">XML 解析器选项</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.parseerror-class.html">matlab.io.xml.dom.ParseError</a></td><td align="left">指定 XML 标记解析错误</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.parseerrorhandler-class.html">matlab.io.xml.dom.ParseErrorHandler</a></td><td align="left">Abstract base class for parse error handlers</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.parseerrorlocator-class.html">matlab.io.xml.dom.ParseErrorLocator</a></td><td align="left">Specifies location of parse error</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.parseerrorseverity-class.html">matlab.io.xml.dom.ParseErrorSeverity</a></td><td align="left">表示 XML 标记解析错误严重性的枚举类</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.resourceidentifier-class.html">matlab.io.xml.dom.ResourceIdentifier</a></td><td align="left">XML 资源标识符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.resourceidentifiertype-class.html">matlab.io.xml.dom.ResourceIdentifierType</a></td><td align="left">XML 资源标识符类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.writerconfiguration-class.html">matlab.io.xml.dom.WriterConfiguration</a></td><td align="left">XML DOM 写入器选项</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="w3c-dom"><a aria-hidden="true" tabindex="-1" href="#w3c-dom"><span class="icon icon-link"></span></a>W3C DOM</h3><div class="wrap-body">

































































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.attr-class.html">matlab.io.xml.dom.Attr</a></td><td align="left">XML 元素的属性</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.cdatasection-class.html">matlab.io.xml.dom.CDATASection</a></td><td align="left">CDATA 节</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.comment-class.html">matlab.io.xml.dom.Comment</a></td><td align="left">XML 文档中的注释</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.document-class.html">matlab.io.xml.dom.Document</a></td><td align="left">XML 文档</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.documentfragment-class.html">matlab.io.xml.dom.DocumentFragment</a></td><td align="left">文档节点组</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.documenttype-class.html">matlab.io.xml.dom.DocumentType</a></td><td align="left">文档类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.element-class.html">matlab.io.xml.dom.Element</a></td><td align="left">XML 文档的元素</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.entity-class.html">matlab.io.xml.dom.Entity</a></td><td align="left">由文档类型定义的实体</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.namednodemap-class.html">matlab.io.xml.dom.NamedNodeMap</a></td><td align="left">一组具有名称的文档节点</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.nodelist-class.html">matlab.io.xml.dom.NodeList</a></td><td align="left">文档节点列表</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.notation-class.html">matlab.io.xml.dom.Notation</a></td><td align="left">文档类型定义中的表示法</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.processinginstruction-class.html">matlab.io.xml.dom.ProcessingInstruction</a></td><td align="left">XML 处理指令</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.text-class.html">matlab.io.xml.dom.Text</a></td><td align="left">XML 文档中的文本</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.dom.typeinfo-class.html">matlab.io.xml.dom.TypeInfo</a></td><td align="left">架构类型信息</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="xml-变换"><a aria-hidden="true" tabindex="-1" href="#xml-变换"><span class="icon icon-link"></span></a>XML 变换</h3><div class="wrap-body">

























































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.compiledstylesheet-class.html">matlab.io.xml.transform.CompiledStylesheet</a></td><td align="left">编译的样式表</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.resultdocument-class.html">matlab.io.xml.transform.ResultDocument</a></td><td align="left">将转换结果存储为文档</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.resultstring-class.html">matlab.io.xml.transform.ResultString</a></td><td align="left">将转换结果存储为字符串</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.resultfile-class.html">matlab.io.xml.transform.ResultFile</a></td><td align="left">将转换结果存储为文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.sourcedocument-class.html">matlab.io.xml.transform.SourceDocument</a></td><td align="left">用于转换的 XML 源文档</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.sourcefile-class.html">matlab.io.xml.transform.SourceFile</a></td><td align="left">用于转换的 XML 源文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.sourcestring-class.html">matlab.io.xml.transform.SourceString</a></td><td align="left">用于转换的 XML 源字符串</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.stylesheetsourcedocument-class.html">matlab.io.xml.transform.StylesheetSourceDocument</a></td><td align="left">用于转换的样式表源文档</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.stylesheetsourcefile-class.html">matlab.io.xml.transform.StylesheetSourceFile</a></td><td align="left">用于转换的样式表源文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.stylesheetsourcestring-class.html">matlab.io.xml.transform.StylesheetSourceString</a></td><td align="left">用于转换的 XSL 源字符串</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.tracer-class.html">matlab.io.xml.transform.Tracer</a></td><td align="left">Trace execution of stylesheet</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.transform.transformer-class.html">matlab.io.xml.transform.Transformer</a></td><td align="left">XML 文档转换器</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="xpath-查询"><a aria-hidden="true" tabindex="-1" href="#xpath-查询"><span class="icon icon-link"></span></a>XPath 查询</h3><div class="wrap-body">

























<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.xpath.compiledexpression-class.html">matlab.io.xml.xpath.CompiledExpression</a></td><td align="left">编译的 XPath 表达式</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.xpath.evalresulttype-class.html">matlab.io.xml.xpath.EvalResultType</a></td><td align="left">XPath 表达式计算的结果类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.xpath.evaluator-class.html">matlab.io.xml.xpath.Evaluator</a></td><td align="left">XPath 表达式计算器</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.xml.xpath.prefixresolver-class.html">matlab.io.xml.xpath.PrefixResolver</a></td><td align="left">用于命名空间前缀解析器的抽象基类</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="json-格式"><a aria-hidden="true" tabindex="-1" href="#json-格式"><span class="icon icon-link"></span></a>JSON 格式</h3><div class="wrap-body">

















<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/jsondecode.html">jsondecode</a></td><td align="left">解码 JSON 格式的文本</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/jsonencode.html">jsonencode</a></td><td align="left">基于结构化 <code>MATLAB</code> 数据创建 JSON 格式的文本</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="工作区变量和-mat-文件"><a aria-hidden="true" tabindex="-1" href="#工作区变量和-mat-文件"><span class="icon icon-link"></span></a>工作区变量和 MAT 文件</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->





















































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/load.html">load</a></td><td align="left">将文件变量加载到工作区中</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/save.html">save</a></td><td align="left">将工作区变量保存到文件中</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlab.io.matfile.html">matfile</a></td><td align="left">访问和更改 MAT 文件中的变量，而不必将文件加载到内存中</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/disp.html">disp</a></td><td align="left">显示变量的值</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/formatteddisplaytext.html">formattedDisplayText</a></td><td align="left">以字符串形式捕获显示输出</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/who.html">who</a></td><td align="left">列出工作区中的变量</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/whos.html">whos</a></td><td align="left">列出工作区中的变量及大小和类型</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/clear.html">clear</a></td><td align="left">从工作区中删除项目、释放系统内存</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/clearvars.html">clearvars</a></td><td align="left">清除内存中的变量</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/openvar.html">openvar</a></td><td align="left">在变量编辑器或其他图形编辑工具中打开工作区变量</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/workspace.html">工作区浏览器</a></td><td align="left">打开工作区浏览器以管理工作区</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="低级文件-io"><a aria-hidden="true" tabindex="-1" href="#低级文件-io"><span class="icon icon-link"></span></a>低级文件 I/O</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->

































































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fclose.html">fclose</a></td><td align="left">关闭一个或所有打开的文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/feof.html">feof</a></td><td align="left">检测文件末尾</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ferror.html">ferror</a></td><td align="left">文件 I/O 错误信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fgetl.html">fgetl</a></td><td align="left">读取文件中的行，并删除换行符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fgets.html">fgets</a></td><td align="left">读取文件中的行，并保留换行符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fileread.html">fileread</a></td><td align="left">以文本格式读取文件内容</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fopen.html">fopen</a></td><td align="left">打开文件或获得有关打开文件的信息</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fprintf.html">fprintf</a></td><td align="left">将数据写入文本文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fread.html">fread</a></td><td align="left">读取二进制文件中的数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/frewind.html">frewind</a></td><td align="left">将文件位置指示符移至所打开文件的开头</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fscanf.html">fscanf</a></td><td align="left">读取文本文件中的数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fseek.html">fseek</a></td><td align="left">移至文件中的指定位置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftell.html">ftell</a></td><td align="left">当前位置</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/fwrite.html">fwrite</a></td><td align="left">将数据写入二进制文件</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="串行和-usb-通信---连接和配置"><a aria-hidden="true" tabindex="-1" href="#串行和-usb-通信---连接和配置"><span class="icon icon-link"></span></a>串行和 USB 通信 - 连接和配置</h3><div class="wrap-body">

























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialportlist.html">serialportlist</a></td><td align="left">连接到您的系统的串行端口列表</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.html">serialport</a></td><td align="left">连接到串行端口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.configureterminator.html">configureTerminator</a></td><td align="left">为与串行端口的 ASCII 字符串通信设置终止符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.configurecallback.html">configureCallback</a></td><td align="left">为与串行端口设备的通信设置回调函数和触发条件</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="串行和-usb-通信---读取和写入"><a aria-hidden="true" tabindex="-1" href="#串行和-usb-通信---读取和写入"><span class="icon icon-link"></span></a>串行和 USB 通信 - 读取和写入</h3><div class="wrap-body">

























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.read.html">read</a></td><td align="left">从串行端口读取数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.readline.html">readline</a></td><td align="left">从串行端口读取 ASCII 字符串数据行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.write.html">write</a></td><td align="left">将数据写入串行端口</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.writeline.html">writeline</a></td><td align="left">将 ASCII 数据行写入串行端口</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="串行和-usb-通信---控制引脚和内存"><a aria-hidden="true" tabindex="-1" href="#串行和-usb-通信---控制引脚和内存"><span class="icon icon-link"></span></a>串行和 USB 通信 - 控制引脚和内存</h3><div class="wrap-body">

























<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.flush.html">flush</a></td><td align="left">清空串行端口设备缓冲区</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.getpinstatus.html">getpinstatus</a></td><td align="left">获取串行引脚状态</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.setrts.html">setRTS</a></td><td align="left">设置串行 RTS 引脚</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/serialport.setdtr.html">setDTR</a></td><td align="left">设置串行 DTR 引脚</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="tcpip-通信---连接和配置"><a aria-hidden="true" tabindex="-1" href="#tcpip-通信---连接和配置"><span class="icon icon-link"></span></a>TCP/IP 通信 - 连接和配置</h3><div class="wrap-body">

























<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.html">tcpclient</a></td><td align="left">创建与 TCP/IP 服务器的 TCP/IP 客户端连接</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/echotcpip.html">echotcpip</a></td><td align="left">启动或停止 TCP/IP 回显服务器</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.configureterminator.html">configureTerminator</a></td><td align="left">为通过 TCP/IP 与远程主机进行的 ASCII 字符串通信设置终止符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.configurecallback.html">configureCallback</a></td><td align="left">为通过 TCP/IP 与远程主机的通信设置回调函数和触发条件</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="tcpip-通信---读取和写入"><a aria-hidden="true" tabindex="-1" href="#tcpip-通信---读取和写入"><span class="icon icon-link"></span></a>TCP/IP 通信 - 读取和写入</h3><div class="wrap-body">





























<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.read.html">read</a></td><td align="left">通过 TCP/IP 读取远程主机上的数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.readline.html">readline</a></td><td align="left">通过 TCP/IP 从远程主机读取 ASCII 字符串数据行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.write.html">write</a></td><td align="left">通过 TCP/IP 向远程主机写入数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.writeline.html">writeline</a></td><td align="left">通过 TCP/IP 向远程主机写入 ASCII 数据行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/tcpclient.flush.html">flush</a></td><td align="left">为通过 TCP/IP 与远程主机的通信清空缓冲区</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="bluetooth-通信---连接和配置"><a aria-hidden="true" tabindex="-1" href="#bluetooth-通信---连接和配置"><span class="icon icon-link"></span></a>Bluetooth 通信 - 连接和配置</h3><div class="wrap-body">

























<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetoothlist.html">bluetoothlist</a></td><td align="left">扫描附近的 <code>Bluetooth</code> 经典设备</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.html">bluetooth</a></td><td align="left">连接到 <code>Bluetooth</code> 经典设备</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.configureterminator.html">configureTerminator</a></td><td align="left">为与 <code>Bluetooth</code> 设备的 ASCII 字符串通信设置终止符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.configurecallback.html">configureCallback</a></td><td align="left">为与 <code>Bluetooth</code> 设备的通信设置回调函数和触发条件</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="bluetooth-通信---读取和写入"><a aria-hidden="true" tabindex="-1" href="#bluetooth-通信---读取和写入"><span class="icon icon-link"></span></a>Bluetooth 通信 - 读取和写入</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->





























<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.read.html">read</a></td><td align="left">从 <code>Bluetooth</code> 设备读取数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.readline.html">readline</a></td><td align="left">从 <code>Bluetooth</code> 设备读取 ASCII 字符串数据行</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.write.html">write</a></td><td align="left">将数据写入 <code>Bluetooth</code> 设备</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.writeline.html">writeline</a></td><td align="left">将 ASCII 数据行写入 <code>Bluetooth</code> 设备</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/bluetooth.flush.html">flush</a></td><td align="left">清空 <code>Bluetooth</code> 设备缓冲区</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="bluetooth-低功耗通信"><a aria-hidden="true" tabindex="-1" href="#bluetooth-低功耗通信"><span class="icon icon-link"></span></a>Bluetooth 低功耗通信</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->









































<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/blelist.html">blelist</a></td><td align="left">扫描附近的低功耗 <code>Bluetooth</code> 外围设备</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ble.html">ble</a></td><td align="left">连接到低功耗 <code>Bluetooth</code> 外围设备</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlabshared.blelib.characteristic.html">characteristic</a></td><td align="left">访问低功耗 <code>Bluetooth</code> 外围设备的特征</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlabshared.blelib.descriptor.html">descriptor</a></td><td align="left">访问低功耗 <code>Bluetooth</code> 外围设备上的描述符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlabshared.blelib.characteristic.read.html">read</a></td><td align="left">读取低功耗 <code>Bluetooth</code> 外围设备上的特征或描述符数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlabshared.blelib.characteristic.write.html">write</a></td><td align="left">将数据写入低功耗 <code>Bluetooth</code> 外围设备的特征或描述符</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlabshared.blelib.characteristic.subscribe.html">subscribe</a></td><td align="left">订阅特征通知或指示</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/matlabshared.blelib.characteristic.unsubscribe.html">unsubscribe</a></td><td align="left">取消订阅特征通知和指示</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="web-服务"><a aria-hidden="true" tabindex="-1" href="#web-服务"><span class="icon icon-link"></span></a>Web 服务</h3><div class="wrap-body">

































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/webread.html">webread</a></td><td align="left">从 RESTful Web 服务读取内容</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/webwrite.html">webwrite</a></td><td align="left">将数据写入 RESTful Web 服务</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/websave.html">websave</a></td><td align="left">将 RESTful Web 服务中的内容保存到文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/weboptions.html">weboptions</a></td><td align="left">指定 RESTful Web 服务的参数</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/web.html">web</a></td><td align="left">在浏览器中打开网页或文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sendmail.html">sendmail</a></td><td align="left">向地址列表发送电子邮件</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="ftp-文件操作"><a aria-hidden="true" tabindex="-1" href="#ftp-文件操作"><span class="icon icon-link"></span></a>FTP 文件操作</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->





























































<table><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.html">ftp</a></td><td align="left">连接到 FTP 服务器以访问其文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/sftp.html">sftp</a></td><td align="left">Connection to SFTP server to access its files</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.ascii.html">ascii</a></td><td align="left">将 FTP 传输模式设置为 ASCII</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.binary.html">binary</a></td><td align="left">将 FTP 传输模式设置为二进制</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.cd.html">cd</a></td><td align="left">更改或查看 SFTP 或 FTP 服务器上的当前文件夹</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.close.html">close</a></td><td align="left">关闭与 SFTP 或 FTP 服务器的连接</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.delete.html">delete</a></td><td align="left">删除 SFTP 或 FTP 服务器上的文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.dir.html">dir</a></td><td align="left">列出 SFTP 或 FTP 服务器上的文件夹内容</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.mget.html">mget</a></td><td align="left">从 SFTP 或 FTP 服务器下载文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.mkdir.html">mkdir</a></td><td align="left">在 SFTP 或 FTP 服务器上创建新文件夹</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.mput.html">mput</a></td><td align="left">将文件或文件夹上传到 SFTP 或 FTP 服务器</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.rename.html">rename</a></td><td align="left">重命名 SFTP 或 FTP 服务器上的文件</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/ftp.rmdir.html">rmdir</a></td><td align="left">删除 SFTP 或 FTP 服务器上的文件夹</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="物联网-iot-数据"><a aria-hidden="true" tabindex="-1" href="#物联网-iot-数据"><span class="icon icon-link"></span></a>物联网 (IoT) 数据</h3><div class="wrap-body">

















<table class="style-list"><thead><tr><th align="left">:-</th><th align="left">:-</th></tr></thead><tbody><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/thingspeakread.html">thingSpeakRead</a></td><td align="left">读取存储在 <code>ThingSpeak</code> 通道中的数据</td></tr><tr><td align="left"><a href="https://ww2.mathworks.cn/help/matlab/ref/thingspeakwrite.html">thingSpeakWrite</a></td><td align="left">将数据写入 <code>ThingSpeak</code> 通道</td></tr></tbody></table>
<!--rehype:className=style-list-->
</div></div></div></div></div><div class="wrap h2body-not-exist"><div class="wrap-header h2wrap"><h2 id="另见"><a aria-hidden="true" tabindex="-1" href="#另见"><span class="icon icon-link"></span></a>另见</h2><div class="wrap-body">
<ul>
<li><a href="https://www.mathworks.com">MATLAB 官网</a></li>
<li><a href="https://mathworks.cn/">MATLAB 官网(中文)</a></li>
</ul>
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang.</footer></footer><script src="..\/data.js?v=1.4.1" defer></script><script src="..\/js/fuse.min.js?v=1.4.1" defer></script><script src="..\/js/main.js?v=1.4.1" defer></script><div id="mysearch"><div class="mysearch-box"><div class="mysearch-input"><div><svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 18 18">
  <path fill="currentColor" d="M17.71,16.29 L14.31,12.9 C15.4069846,11.5024547 16.0022094,9.77665502 16,8 C16,3.581722 12.418278,0 8,0 C3.581722,0 0,3.581722 0,8 C0,12.418278 3.581722,16 8,16 C9.77665502,16.0022094 11.5024547,15.4069846 12.9,14.31 L16.29,17.71 C16.4777666,17.8993127 16.7333625,18.0057983 17,18.0057983 C17.2666375,18.0057983 17.5222334,17.8993127 17.71,17.71 C17.8993127,17.5222334 18.0057983,17.2666375 18.0057983,17 C18.0057983,16.7333625 17.8993127,16.4777666 17.71,16.29 Z M2,8 C2,4.6862915 4.6862915,2 8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 Z"></path>
</svg><input id="mysearch-input" type="search" placeholder="搜索" autocomplete="off"><div class="mysearch-clear"></div></div><button id="mysearch-close" type="button">搜索</button></div><div class="mysearch-result"><div id="mysearch-menu"></div><div id="mysearch-content"></div></div></div></div></body>
</html>
